//
//  HJJTSQLite.h
//  YGMobile
//
//  Created by zhanglu on 2017/2/13.
//  Copyright © 2017年 Elephants Financial Service. All rights reserved.
//

#import <UIKit/UIKit.h>


#ifndef __Chart__HJJTSQLite__
#define __Chart__HJJTSQLite__

#include "BaseSQLite.h"
#include "HJJT.h"
#include <vector>
#include <string>

namespace ytx {
    
    class HJJTSQLite : public BaseSQLite{
    private:
        static std::vector<HJJTItem> transforDataHJJTItem(DBResult & dbResult);
    public:
        HJJTSQLite();
        virtual ~HJJTSQLite();
        bool insertData(std::string tableName, std::vector<HJJTItem> data);
        //        bool checkInRange(std::string tableName, YTXTime * outputLastTime, HJJT * gs, YTXTime time);
        bool getDataFromDB(std::string tableName,YTXTime time, std::vector<HJJTItem> * gsItems, const unsigned int limit);
        bool createKLineDataTableIfNotExit(const std::string tableName);
        bool vacuumDB();
    };
}

#endif /* defined(__Chart__KLineSQLite__) */
